

#ifndef _CAPTURE_H_
#define _CAPTURE_H_

#include <mcvip.h>
#include <osa_que.h>

typedef struct {

  int videoDecoderMode;   //Video decoder mode, MCVIP_VIDEO_DECODER_MODE_xxx
  int videoIfMode;                 //Video interface mode, MCVIP_VIDEO_IF_MODE_BTxxx
  int videoSystem;                //Video system, MCVIP_VIDEO_SYSTEM_xxx   PAL or NTSC

} CAPTURE_CreatePrm;

typedef struct {

  void *mcvipHndl;
  
  MCVIP_ChList chList;
  MCVIP_CreatePrm createPrm;
  
  OSA_QueHndl displayQue[MCVIP_CHANNELS_MAX];

} CAPTURE_Info;

int CAPTURE_create(CAPTURE_CreatePrm *prm);
int CAPTURE_delete();
int CAPTURE_start();
int CAPTURE_stop();

int CAPTURE_saveFrame();
int CAPTURE_printInfo();

CAPTURE_Info *CAPTURE_getInfo();

#endif 
